﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using PBOffice.DAL;

public partial class Attendance_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        this.txtboxDate.Text = System.DateTime.Now.ToString();
    }
    protected void btnSignIn_Click(object sender, EventArgs e)
    {
        this.Panel3.Visible = false;
        this.btnSignIn.Enabled = false;
        this.Panel2.Visible = true;
        this.btnSignOff.Enabled = true;
        PBOffice.DAL.User us = (User)Session["userManage"];
        this.txtUserID.Text = us.UserId.ToString();
        this.txtUserName.Text = us.UserName.ToString();
       // this.txtUserDepartment.Text = us.
    }
    protected void btnSignOff_Click(object sender, EventArgs e)
    {
        this.btnSignOff.Enabled = false;
        this.Panel2.Visible = false;
        this.Panel3.Visible = true;
        this.btnSignIn.Enabled = true;
    }
}